package com.shuyan.base.algorithm;

import java.util.Optional;

public class LazyBonesSingleton {
    private LazyBonesSingleton(){}
    private static volatile LazyBonesSingleton instance=null;
    public static synchronized LazyBonesSingleton getInstance(){
        return  Optional.ofNullable(instance).orElse(new LazyBonesSingleton());
    }
}
